<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
<html:html lang="true">
<head>

	<title>ADD</title>
	<link href="./css/xtab.css" rel="stylesheet" type="text/css" />
</head>

<body>
	 
	<html:form action="/catalog.do">
	 
	
		<table border="0" align="center" width="100%" cellspacing="0"
			onkeydown="if(event.keyCode==13){return false;}">
			<tr>
				<td width="30%" class="tableTitle">
					栏目名称
				</td>
				<td>
					<html:text property="catalog.catalogName" size="100" />

				</td>
			</tr>
			<tr>
				<td class="tableTitle">
					URL
				</td>
				<td>
					<html:hidden property="catalog.parentId" />
					<html:text property="catalog.catalogUrl" size="100" />

				</td>
			</tr>
			<tr>
				<td class="tableTitle">
					排序
				</td>
				<td>
					<html:text property="catalog.catalogOrder" size="4" />
				</td>
			</tr>
			<tr>
				<td class="tableTitle">
					备注
				</td>
				<td>
					<html:textarea property="catalog.catalogRemark" cols="50" rows="5"></html:textarea>
				</td>
			</tr>

			<tr>
				<td colspan="2" align="center">
				<html:hidden property="catalog.catalogId"/>
					<input type="button" id="add"
						value="保 存" class="button">

				</td>

			</tr>
		</table>


	</html:form>


	<script>
  
  $("#add").click(function(){  
 
		var f=document.catalogForm;
		f.action="catalog.do?method=updateCatalog";
		f.submit();
}); 

 
  
  </script>
</body>


</html:html>
